<%@ page language="java" pageEncoding="UTF-8" %>
<%@ page import="java.util.List" %>
<%@ page import="model.User" %>
<jsp:useBean id="dob" class="Utils.DBUtils"/>
<%
  Object user = request.getSession().getAttribute("user");
  if (user != null) {
    User user1 = (User) user;
%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width" />
  <meta name="author" content="www.lzqcode.com" />
  <title>文章阅读</title>
  <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="layui/css/layui.css" />
  <link rel="stylesheet" href="css/master.css" />
  <link rel="stylesheet" href="css/gloable.css" />
  <link rel="stylesheet" href="css/nprogress.css" />
  <link rel="stylesheet" href="css/blog.css" />
</head>
<body>
<div class="header">
</div>

<header class="gird-header">
  <div class="header-fixed">
    <div class="header-inner">
      <a href="javascript:void(0)" class="header-logo" id="logo">Yuuu</a>
      <nav class="nav" id="nav">
        <ul>
          <li><a href="../index.html">首页</a></li>
          <li><a href="../article.html">博客</a></li>
          <li><a href="../message.html">留言</a></li>
          <li><a href="../diary.html">日记</a></li>
          <li><a href="../link.html">友链</a></li>
        </ul>
      </nav>
      <!--                <a href="#" class="blog-user">-->
      <!--                    <i class="fa fa-wechat"></i>-->
      <!--                </a>-->
      <a class="phone-menu">123
        <i>123</i>
        <i>123</i>
        <i>123</i>
      </a>
    </div>
  </div>
</header>

<%
  String id = request.getParameter("id");
  String[] temp = {"id","title","userid","content","time"};
  List<String[]> vec = dob.getData("classnote",temp,"id="+id,user1);
  for(int i=0;i<vec.size();i++){
    String[] ss = vec.get(i);
%>
<div class="doc-container" id="doc-container">
  <div class="container-fixed">
    <div class="col-content" style="width:100%">
      <div class="inner">
        <article class="article-list">
          <input type="hidden" value="@Model.BlogTypeID" id="blogtypeid" />
          <section class="article-item">
            <aside class="title" style="line-height:1.5;">
              <h4><%=ss[1]%></h4>
              <p class="fc-grey fs-14">
                <small>
                  作者：<a href="javascript:void(0)" target="_blank" class="fc-link"><%=ss[2]%></a>
                </small>
                <small class="ml10">围观群众：<i class="readcount">666</i></small>
                <small class="ml10">于 <label><%=ss[4]%></label> 最后修改</small>
              </p>
            </aside>
            <div class="time mt10" style="padding-bottom:0;">
              <span class="day">1</span>
              <span class="month fs-18">7<small class="fs-14">月</small></span>
              <span class="year fs-18"><%=ss[4]%></span>
            </div>
            <br>
            <img src="image/read/yili.gif" alt="">
            <br>
            <div class="content artiledetail" style="border-bottom: 1px solid #e1e2e0; padding-bottom: 20px;">
              <%=ss[3]%>

              <div class="copyright mt20">
                <p class="f-toe fc-black">
                  <!--                                        非特殊说明，本文版权归 Yblog 所有，转载请注明出处.-->
                </p>
                <p class="f-toe">
                  本文标题：
                  <a href="javascript:void(0)" class="r-title">我不道啊</a>
                </p>
                <p class="f-toe">
                  本文为原创，理发店理发店理发店
                </p>

              </div>
              <div id="aplayer" style="margin:5px 0"></div>
              <h6>延伸阅读</h6>
              <a href="javascript:void(0)" class="r-title">不知道呢</a>
              <br> <a href="javascript:void(0)" class="r-title">idontknow</a>
              <ol class="b-relation"></ol>
            </div>
            <fieldset class="layui-elem-field layui-field-title">
              <legend>留言板</legend>
              <div class="layui-field-box">
                <div class="leavemessage" style="text-align:initial">
                  <form class="layui-form blog-editor" action="">
                    <input type="hidden" name="articleid" id="articleid" value="@Model.ID">
                    <div class="layui-form-item">
                      <textarea name="editorContent" lay-verify="content" id="remarkEditor" placeholder="请输入内容" class="layui-textarea layui-hide"></textarea>
                    </div>
                    <div class="layui-form-item">
                      <button class="layui-btn" lay-submit="formLeaveMessage" lay-filter="formLeaveMessage">提交留言</button>
                    </div>
                  </form>
                </div>
              </div>
            </fieldset>
            <ul class="blog-comment" id="blog-comment"></ul>
          </section>
        </article>
      </div>
    </div>
  </div>
</div>
<%} }%>



<footer class="grid-footer">
  <div class="footer-fixed">
    <div class="copyright">
      <div class="info">
        <div class="contact">
          <a href="javascript:void(0)" class="github" target="_blank"><i class="fa fa-github"></i></a>
          <a href="#" class="qq" target="_blank" ><i class="fa fa-qq"></i></a>
          <a href="#" class="email" target="_blank" ><i class="fa fa-envelope"></i></a>
          <a href="javascript:void(0)" class="weixin"><i class="fa fa-weixin"></i></a>
        </div>
        <p class="mt05">
          Copyright &copy; 2022 个人博客
        </p>
      </div>
    </div>
  </div>
</footer>
<script src="layui/layui.js"></script>
<script src="js/yss/gloable.js"></script>
<script src="js/plugins/nprogress.js"></script>
<script src="js/pagecomment.js"></script>
<script>NProgress.start();</script>
<script>
  window.onload = function () {
    NProgress.done();
  };
</script>
</body>
</html>
